import SvgIcon from '@/components/SvgIcon' // svg组件
import Vue from 'vue'

// register globally
Vue.component('svg-icon', SvgIcon)

const requireAll = requireContext => requireContext.keys().map(requireContext)
const req = require.context('./svg', false, /\.svg$/)
const alireq = require.context('./ali', false, /\.svg$/)
const svgicon1 = require.context('./svgicon', false, /\.svg$/)
requireAll(req)
requireAll(alireq)
requireAll(svgicon1)